<template>
  <a-config-provider :locale="locale">
    <div class="container">
      <Header></Header>
      <div class="main">
        <Nav></Nav>
        <Nuxt class="main-content" />
      </div>
    </div>
  </a-config-provider>
</template>

<script>
  import zhCN from 'ant-design-vue/lib/locale-provider/zh_CN';
export default {
  asyncData({redirect}) {
    redirect('/discover')
  },
  data(){
    return {
      locale: zhCN,
    }
  }
}
</script>

<style lang="scss" scoped>
.container {
  margin: 0;
  padding: 0;
  height: 100vh;
}
.main {
  top: 60px;
  height: calc(100% - 60px);
  overflow-y: hidden;
  .main-content {
    width: calc(100% - 350px);
    height: inherit;
    overflow-y: scroll;
    float: left;
    padding: 10px 145px;
  }
}
</style>
